home *** CD-ROM | disk | FTP | other *** search
Wrap
INI File | 2001-03-10 | 5.0 KB | 79 lines
[Addon] Script=Nicklist Color Change Version=1.4 Author=JetsNY Desc=An addon to change the colors of your nick, voiced nicks and opped nicks. Date=March 16th, 2000 [script] n0=alias color-nick { n1= if ($r.set(Nick.Colors,Colors) != On) { halt } n2= var %i = 1 n3= :next n4= if (%i > $nick($chan,0)) { halt } n5= if ($nick($chan,%i) isop $chan) { cline $r.set(Nick.Colors,Color.1) $chan %i } n6= elseif ($nick($chan,%i) ishelp $chan) { cline $r.set(Nick.Colors,Color.2) $chan %i } n7= elseif ($nick($chan,%i) isvo $chan) { cline $r.set(Nick.Colors,Color.3) $chan %i } n8= else { if ($nick($chan,%i) isreg $chan) { cline 15 $chan %i } } n9= if ($nick($chan,%i) == $me) { cline $r.set(Nick.Colors,Color.4) $chan %i } n10= inc %i 1 n11= goto next n12=} n13= n14=On *:JOIN:#:color-nick n15=On *:OP:#:color-nick n16=On *:VOICE:#:color-nick n17=On *:HELP:#:color-nick n18=On *:DEOP:#:color-nick n19=On *:DEVOICE:#:color-nick n20=On *:DEHELP:#:color-nick n21= n22=Dialog Color-Chg { n23= title "Nicklist Color Changer" n24= size -1 -1 555 291 n25= box "", 1, 5 1 545 250 n26= check "&Enable Nicklist Colors", 2, 15 25 125 15 n27= text "&Ops:", 3, 16 50 105 13 n28= list 4, 15 63 105 100 n29= text "&Helps (Not on Relicnet):", 5, 136 50 130 13 n30= list 6, 135 63 105 100 n31= text "&Voices:", 7, 256 50 105 13 n32= list 8, 255 63 105 100 n33= text "&Me:", 9, 376 50 105 13 n34= list 10, 375 63 105 100 n35= button "&Random", 11, 490 124 50 22 n36= text "The nicklist colors option is to change colors of different nick types in the nicklist. You can also turn the colors off if you don't like them by unchecking the Enable Colors checkbox. It's better if you choose colors that are nice on black and white because those are the most common colors of backgrounds for people on IRC. NOTE: You can always type /color-nick to apply new color settings if very few people join a certain channel. Just make sure that the channel you want to apply the settings on is active. NOTE: After you apply settings, you may need to type /color-nick to manually update the colors.", 12, 15 165 525 80 n37= button "OK", 498, 300 261 80 25, ok n38= button "Cancel", 499, 385 261 80 25, cancel n39= button "&Apply", 500, 470 261 80 25 n40=} n41= n42=On *:dialog:Color-Chg:*:*:{ n43= if ($devent == init) { n44= dla Color-Chg 4 00 - White,01 - Black,02 - Blue,03 - Green,04 - Red,05 - Brown,06 - Purple,07 - Orange,08 - Yellow,09 - Light Green,10 - Cyan,11 - Light Cyan,12 - Royal Blue,13 - Pink,14 - Grey,15 - Light Grey n45= dla Color-Chg 6 00 - White,01 - Black,02 - Blue,03 - Green,04 - Red,05 - Brown,06 - Purple,07 - Orange,08 - Yellow,09 - Light Green,10 - Cyan,11 - Light Cyan,12 - Royal Blue,13 - Pink,14 - Grey,15 - Light Grey n46= dla Color-Chg 8 00 - White,01 - Black,02 - Blue,03 - Green,04 - Red,05 - Brown,06 - Purple,07 - Orange,08 - Yellow,09 - Light Green,10 - Cyan,11 - Light Cyan,12 - Royal Blue,13 - Pink,14 - Grey,15 - Light Grey n47= dla Color-Chg 10 00 - White,01 - Black,02 - Blue,03 - Green,04 - Red,05 - Brown,06 - Purple,07 - Orange,08 - Yellow,09 - Light Green,10 - Cyan,11 - Light Cyan,12 - Royal Blue,13 - Pink,14 - Grey,15 - Light Grey n48= if ($r.set(Nick.Colors,Colors) == On) { did -c $dname 2 } n49= if ($r.set(Nick.Colors,Color.1) !isnum 0-15) { did -c $dname 4 $gettok(2 3 4 5 6 7 8 9 10 11 12 13 14 15,$rand(1,14),32) } | else { did -c $dname 4 $calc($r.set(Nick.Colors,Color.1) + 1) } n50= if ($r.set(Nick.Colors,Color.2) !isnum 0-15) { did -c $dname 6 $gettok(2 3 4 5 6 7 8 9 10 11 12 13 14 15,$rand(1,14),32) } | else { did -c $dname 6 $calc($r.set(Nick.Colors,Color.2) + 1) } n51= if ($r.set(Nick.Colors,Color.3) !isnum 0-15) { did -c $dname 8 $gettok(2 3 4 5 6 7 8 9 10 11 12 13 14 15,$rand(1,14),32) } | else { did -c $dname 8 $calc($r.set(Nick.Colors,Color.3) + 1) } n52= if ($r.set(Nick.Colors,Color.4) !isnum 0-15) { did -c $dname 10 $gettok(2 3 4 5 6 7 8 9 10 11 12 13 14 15,$rand(1,14),32) } | else { did -c $dname 10 $calc($r.set(Nick.Colors,Color.4) + 1) } n53= } n54= if ($devent == sclick) { n55= if ($did == 11) { did -c $dname 4 $gettok(2 3 4 5 6 7 8 9 10 11 12 13 14 15,$rand(1,14),32) | did -c $dname 6 $gettok(2 3 4 5 6 7 8 9 10 11 12 13 14 15,$rand(1,14),32) | did -c $dname 8 $gettok(2 3 4 5 6 7 8 9 10 11 12 13 14 15,$rand(1,14),32) | did -c $dname 10 $gettok(2 3 4 5 6 7 8 9 10 11 12 13 14 15,$rand(1,14),32) } n56= if ($did == 498) || ($did == 500) { n57= if ($did($dname,2).state == 1) { w.set Nick.Colors Colors On } | else { w.set Nick.Colors Colors Off } n58= w.set Nick.Colors Color.1 $gettok($did($dname,4,$did($dname,4).sel).text,1,45) n59= w.set Nick.Colors Color.2 $gettok($did($dname,4,$did($dname,6).sel).text,1,45) n60= w.set Nick.Colors Color.3 $gettok($did($dname,4,$did($dname,8).sel).text,1,45) n61= w.set Nick.Colors Color.4 $gettok($did($dname,4,$did($dname,10).sel).text,1,45) n62= } n63= } n64=} n65= n66=menu menubar { n67= - n68= Nicklist Color Settings:dopen Color-Chg Color-Chg n69=}